<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
			<meta charset="utf-8">
			<title></title>
			<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
			<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
			<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
		</head>
	<body>
				<div id="head" style="width: 200px;margin: auto;"  >
				<button onclick="printpage()"  id="print" >打印</button>
				<button><a onclick="send('t')"  id="t"  href="<%=request.getContextPath() %>/i/t?status=审核通过&email=${tea.email}">同意通过</a></button>
				<button><a onclick="send('j')"  id="j"  href="<%=request.getContextPath() %>/i/t?status=审核失败&email=${tea.email}">拒绝通过</a></button>
				</div>
				
		<div style="width: 600px;margin: auto;border: 4px grey solid;border-radius: 10px;" >
		<table class="table table-striped">
				  <caption style="text-align: center;" >个人信息表</caption>
				  <thead>
				    
				  </thead>
				  <tbody>
					<tr><td>姓名</td><td>${tea.name }</td><td rowspan="5"  style="width: 200px;height: 400px;" ><img src="${tea.filepath}" style="left: 0px;" ></td></tr>
					<tr><td>性别</td><td>${tea.sex }</td></tr>
					<tr><td>政治面貌</td><td>${tea.zzmm }</td></tr>
					<tr><td>民族</td><td>${tea.minzu }</td></tr>
					<tr><td>学历</td><td>${tea.xueli }</td></tr>
					<tr><td>身份证号码</td><th colspan="2" >${tea.id }</th><th></th></tr>
					<tr><td>报考部门</td><td colspan="2" >${tea.bumen }</td><td></td></tr>
					<tr><td>报考职位</td><td colspan="2" >${tea.zhiwei }</td><td></td></tr>
					<tr><td>毕业学校</td><td colspan="2" >${tea.xuexiao }</td><td></td></tr>
					<tr><td>户籍</td><td colspan="2" >${tea.hukou }</td><td></td></tr>
					<tr><td>身份</td><td colspan="2" >${tea.shenfen }</td><td></td></tr>
				   </tbody>
				</table>
				</div>
				
	</body>
	<script type="text/javascript">
	
	function printpage(){
		var t = document.getElementById("head");
			t.style.display="none";
			window.print();
			t.style.display="block";

	}	
	
	function send(str) {
		var t=document.getElementById(str);
		var href=t.href;
		if (str=="t") {
			if (confirm("确认操作同意此次审核？")) {
				t.href=href;
			}else{
				t.href="";
			}
		}else{
			if (confirm("确认不通过该用户的申请？")) {
				t.href=href;
			}else{
				t.href="";
			}
		}
			
	}
	
	
	</script>
</html>